package cn.myplus.blog.configure;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 配置文件对应bean.
 *
 * @author libo
 */
@Component
@ConfigurationProperties(prefix = "devops-demo")
public class Config {

    private String name;

    private String version;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Config{" +
                "name='" + name + '\'' +
                ", version='" + version + '\'' +
                '}';
    }
}
